package com.prs.crm.flow;

import com.prs.crm.domain.flow.WorkFlowProcessNode;
import com.prs.crm.domain.flow.WorkFlowProcessNodeDetail;
import com.prs.crm.domain.hr.Person;

/**
 * 流程审核结果处理
 * @author courser.tijichen
 *
 */
public interface FlowJudger {

	
	/**
	 * 根据执行明细判断结点的状态
	 * @param nodeDetail
	 * @return
	 */
	int judge(WorkFlowProcessNodeDetail nodeDetail);
	/**
	 * 流程通过情况
	 * @param instanceNode
	 * @param person
	 * @return 结点的状态
	 */
	int pass(WorkFlowProcessNode processNode,Person executor);
	
	/**
	 * 流程打回iqngkuang
	 * @param instanceNode
	 * @param executor
	 * @return 结点的状态
	 */
	int reject(WorkFlowProcessNode processNode,Person executor);
}
